<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>导航条</title>
    <link rel="stylesheet" href="../css/bootstrap.css">
    <script src="../js/jq-1.12.4.js"></script>
    <script src="../js/bootstrap.js"></script>
</head>

<body>
    <!-- 
    navbar：导航条
    navbar-inverse: 背景和颜色与父级元素相反
    navbar-fixed-top：组件是吸顶的
   -->
    <div id="app" class="navbar navbar-inverse navbar-fixed-top">
        <div class="container" style="border:1px solid #fff">
            <!-- 导航的头部 -->
            <div class="navbar-header">
                <!-- icons按钮组 -->
                <button class="navbar-toggle collaped" type="button" data-toggle="collapse"
                    data-target=".navbar-collapse">
                    <!-- 3个横杠 -->
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <!-- logo链接 -->
                <a href="#" class="navbar-brand " style="padding-top: 10px;">
                    <img src="../img/bootstrap.ico" alt="" width="30" />
                </a>
            </div>
            <!-- 导航的隐藏部分 -->
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li><a href="#">Bootstrap3中文文档</a></li>
                    <li><a href="#">Bootstrap4中文文档</a></li>
                    <li><a href="#">Sass 教程</a></li>
                    <li><a href="#">Less 教程</a></li>
                </ul>
                <!-- 注册按钮 -->
                <button class="btn btn-primary navbar-btn navbar-right">注册</button>
                <!-- 登录表单 -->
                <form class="navbar-form navbar-right" style='padding: 0;margin:0;margin-right: 15px; '>
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="key words">
                    </div>
                    <button type="submit" class="btn btn-primary navbar-btn">Search</button>
                </form>
            </div>
        </div>
</body>

</html>